package examples.model;

import java.util.Collection;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToMany;

@Entity
public class Customer {
    @Id
    private int id;
    private String name; 
    
    @OneToMany(mappedBy="customer")
    Collection<Ticket> tickets;

    public int getId() {
        return id;
    }
    
    public void setId(int id) {
        this.id = id;
    }
    
    public String getName() {
        return name;
    }
    
    public void setName(String name) {
        this.name = name;
    }

	public static Customer findByName(String customerName) {
		// TODO Auto-generated method stub
		return null;
	}
}
